/*
 * Copyright (c) 2007-2020 西安交通信息投资营运有限公司 版权所有
 */

package com.xci.edu.core.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.github.lvyanyang.core.BaseEntity;
import com.github.lvyanyang.core.Const;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 考试试题明细
 * @author 马星俊 maxingjun@xci96716.com
 * @since 2020-11-25 10:52:08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "考试试题明细")
public class ExamRecordDetails extends BaseEntity {
    /**
     * 考试记录主键
     */
    @NotNull(message = "考试记录主键不能为空")
    @Excel(name = "考试记录主键", width = 20d)
    @ApiModelProperty(value = "考试记录主键", required = true, position = 1)
    private Long recordId;

    /**
     * 试题主键
     */
    @NotNull(message = "试题主键不能为空")
    @Excel(name = "试题主键", width = 20d)
    @ApiModelProperty(value = "试题主键", required = true, position = 2)
    private Long questionId;

    /**
     * 用户答案
     */
    @Length(max = 50, message = "用户答案长度不能超过{max}个字符")
    @Excel(name = "用户答案", width = 20d)
    @ApiModelProperty(value = "用户答案", position = 3)
    private String answer;

    /**
     * 状态[1-正确, 0-错误]
     */
    @Excel(name = "状态", width = 20d, replace = { "正确_1", "错误_0" })
    @ApiModelProperty(value = "状态[1-正确, 0-错误]", required = true, position = 4)
    private Integer status;

    /**
     * 排序号
     */
    @NotNull(message = "排序号不能为空")
    @Excel(name = "排序号", width = 20d)
    @ApiModelProperty(value = "排序号", required = true, position = 5)
    private Integer path;

}